package com.zhongwang.business.module.taskManage.controller;

import com.zhongwang.business.base.BaseController;
import com.zhongwang.business.common.JsonResult;
import com.zhongwang.business.module.taskManage.model.UserPerformanceModel;
import com.zhongwang.business.module.taskManage.service.UserPerformanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserPerformanceController  extends BaseController {
    @Autowired
   private UserPerformanceService userPerformanceService;


    /**
     * 待下达列表页面
     * @return
     */
    @GetMapping("/userPerformanceSel")
    public String linkUserPerformanceSel() {
        return "/taskManage/performance/userPerformanceSel";
    }
    /**
     * 查询人员业绩
     * @param model
     * @return
     */
    @ResponseBody
    @PostMapping("/task/userPerformanceSel")
    public JsonResult selectList(UserPerformanceModel model) {
        startPage();
        JsonResult jsonResult=new JsonResult();
        return jsonResult(userPerformanceService.selUserPerformance(model));
    }
}
